package com.prs.crm.dao.crm;

import java.util.Collection;
import java.util.List;

import com.prs.crm.dao.BaseDao;
import com.prs.crm.domain.crm.Customer;
import com.prs.crm.domain.crm.CustomerAgent;
import com.prs.crm.domain.crm.CustomerSupplier;
import com.prs.crm.domain.crm.Linkman;

public interface LinkmanDao extends BaseDao<Linkman>{
	/**
	 * 查询客户关联联系人
	 * @param customer
	 * @return
	 */
	List<Linkman> getLinkmanByCustomer(Customer customer);
	/**
	 * 查询代理商关联联系人
	 * @param customerAgent
	 * @return
	 */
	List<Linkman> getLinkmanByCustomerAgent(CustomerAgent customerAgent);
	/**
	 * 查询供应商关联联系人
	 * @param customerAgent
	 * @return
	 */
	List<Linkman> getLinkmanByCustomerSupplier(CustomerSupplier customerSupplier);
	Collection<Linkman> getAllLinkman();
}
